<!DOCTYPE html>
<html>
<head>
<title>肯同集团员工会员系统</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

<link rel="stylesheet" href="/static/member/css/weui.min.css">
<link rel="stylesheet" href="/static/member/css/jquery-weui.css">
<link rel="stylesheet" href="/static/member/css/style.css">
<link rel="stylesheet" href="/static/member/css/font-awesome.min.css">

</head>
<body ontouchstart>
	

<div class="per_img">
	<div>
    	<img src="{$userdetail.avatar}" width="100%">
    </div>
    <p>{$userdetail.name}</p>
</div>
<div class="weui-cells no-margin">
 
    <div class="weui-cell">
        <div class="weui-cell__bd">
            <p>姓名</p>
        </div>
        <div class="weui-cell__ft">{$userdetail.name}</div>
    </div> 
    <div class="weui-cell">
        <div class="weui-cell__bd">
            <p>工号</p>
        </div>
        <div class="weui-cell__ft">{$userdetail.userid}</div>
    </div>
    <div class="weui-cell">
        <div class="weui-cell__bd">
            <p>手机</p>
        </div>
        <div class="weui-cell__ft">{$userdetail.mobile}</div>
    </div>
    {if condition="$ismember eq false"}
    	<div style='text-align:center;font-size:16px; color:#f00; font-weight:bold; line-height:30px; height:30px;'>
    	会员暂未开通，请等待集团办公室开通！
    	</div>
    {else/}
	    <div class="weui-cell">
	        <div class="weui-cell__bd">
	            <p>余额</p>
	        </div>
	        <div class="weui-cell__ft">{$member.balance|number_format=###,2}</div>
	    </div> 
	    <div class="weui-cell">
	        <div class="weui-cell__bd">
	            <p>生日</p>
	        </div>
	        <div class="weui-cell__ft">{$member.birthday|default=$member.birthmonth}</div>
	    </div>
	    <div class="weui-cell" id='consBtn'>
	        <div class="weui-cell__bd">
	            <p>消费记录</p>
	        </div>
	        <div class="weui-cell__ft">＞</div>
	    </div> 
    
    {/if}
    
     
</div>

 
<!--<div class="weui-btn-area">
    <a class="weui-btn weui-btn_blue" href="javascript:">返回首页</a>
</div>-->
 
<script src="/static/member/js/jquery-2.1.4.js"></script>
<script src="/static/member/js/fastclick.js"></script>
<script>
	$(function() {
		$('#consBtn').click(function(){
			location.href="{:buildUrl('Index/consRecord',['userid'=>$userdetail['userid']])}";
		});
		FastClick.attach(document.body);
		
	});
</script>
<script src="/static/member/js/jquery-weui.js"></script>

</body>
</html>
